﻿@using System.Configuration
@using ECG.Utility
@model  List<ECG.Common.ProviderListHotCateDto>
<div class="pn-provider-hot">
    <div class="pn-pro-header">
        @{
            if (Model.Any())
            {
                var hostContainImages = ConfigurationManager.AppSettings["HostContainImages"];
            <h1>Các thương hiệu nổi bật</h1>
            <ul class="List-provider clearfix">
                @foreach (var item in Model)
                {
                    <li>
                        <a href="@Url.Action("Index", "ProductByProvider", new { Provider = item.Id, ProviderName = StringUtil.RemoveSpecialCharactersVn(item.Name) })">
                            <img src="@hostContainImages/upload/ProviderImages/@item.ImagePath?width=84&height=45" width="84" height="45" />
                            <p>
                                @item.Name
                            </p>
                        </a>
                    </li>
                }
            </ul>
            }
        }
    </div>
</div>
